﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Auto
{
    public class T_Message
    {
        #region Model
        private long _tmid;
        private string _tmtype;
        private string _tmfrom;
        private string _tmto;
        private string _tmtitle;
        private string _tmmessage;
        private int _rowstatus = 0;
        private DateTime _version;
        private string _createdby;
        private DateTime _createddate;
        private string _updatedby;
        private DateTime? _updateddate;
        private string _totype;
        private string _toid;
        /// <summary>
        /// 消息记录表
        /// </summary>
        public long TMID
        {
            set { _tmid = value; }
            get { return _tmid; }
        }

        /// <summary>
        /// 消息类型
        /// </summary>
        public string tmType
        {
            set { _tmtype = value; }
            get { return _tmtype; }
        }
        /// <summary>
        /// 发送方
        /// </summary>
        public string tmfrom
        {
            set { _tmfrom = value; }
            get { return _tmfrom; }
        }
        /// <summary>
        /// 接收方
        /// </summary>
        public string tmto
        {
            set { _tmto = value; }
            get { return _tmto; }
        }
        /// <summary>
        /// 消息标题
        /// </summary>
        public string tmTitle
        {
            set { _tmtitle = value; }
            get { return _tmtitle; }
        }
        /// <summary>
        /// 消息内容
        /// </summary>
        public string tmMessage
        {
            set { _tmmessage = value; }
            get { return _tmmessage; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int RowStatus
        {
            set { _rowstatus = value; }
            get { return _rowstatus; }
        }
        /// <summary>
        /// 
        /// </summary>
        public DateTime Version
        {
            set { _version = value; }
            get { return _version; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string CreatedBy
        {
            set { _createdby = value; }
            get { return _createdby; }
        }
        /// <summary>
        /// 
        /// </summary>
        public DateTime CreatedDate
        {
            set { _createddate = value; }
            get { return _createddate; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string UpdatedBy
        {
            set { _updatedby = value; }
            get { return _updatedby; }
        }
        /// <summary>
        /// 
        /// </summary>
        public DateTime? UpdatedDate
        {
            set { _updateddate = value; }
            get { return _updateddate; }
        }

        /// <summary>
        /// 1.询价单 2.报价单 3.合同
        /// </summary>
        public string toType
        {
            set { _totype = value; }
            get { return _totype; }
        }

        /// <summary>
        /// 关键Id：1.询价单id（requestId） 2.报价单id（responeid） 3. 合同id（ContractId）
        /// </summary>
        public string toId
        {
            set { _toid = value; }
            get { return _toid; }
        }
        #endregion Model
    }
}
